package com.dkd.spare.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 备件库存对象 asset_spare
 * 
 * @author xzj
 * @date 2025-09-03
 */
public class Spare extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 备件编码 */
    @Excel(name = "备件编码")
    private String code;

    /** 备件名称 */
    @Excel(name = "备件名称")
    private String name;

    /** $column.columnComment */
    private String spec;

    /** $column.columnComment */
    private String unit;

    /** 总库存 */
    @Excel(name = "总库存")
    private Long stockTotal;

    /** 在线库存 */
    @Excel(name = "在线库存")
    private Long stockAvailable;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setStockTotal(Long stockTotal) 
    {
        this.stockTotal = stockTotal;
    }

    public Long getStockTotal() 
    {
        return stockTotal;
    }
    public void setStockAvailable(Long stockAvailable) 
    {
        this.stockAvailable = stockAvailable;
    }

    public Long getStockAvailable() 
    {
        return stockAvailable;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("spec", getSpec())
            .append("unit", getUnit())
            .append("stockTotal", getStockTotal())
            .append("stockAvailable", getStockAvailable())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
